<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
<div class="timo-detail-page">
    <div class="timo-detail-title">基本信息</div>
    <table class="layui-table timo-detail-table">
        <colgroup>
            <col width="100px">
            <col>
            <col width="100px">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <th>主键ID</th>
            <td th:text="${baseinfo.id}"></td>
            <th>所属城市</th>
            <td th:text="${baseinfo.area}"></td>
        </tr>
        <tr>
            <th>发布地址</th>
            <td th:text="${baseinfo.address}"></td>
        </tr>
        <tr>
            <th>所属大类</th>
            <td th:text="${baseinfo?.typeone?.title}"></td>
            <th>所属小类</th>
            <td th:text="${baseinfo?.typetwo?.title}"></td>
        </tr>
        <tr>
            <th>发布时间</th>
            <td th:text="${baseinfo.startTime}"></td>
            <th>发布人</th>
            <td th:text="${baseinfo.member.nickname}"></td>
        </tr>
        <tr>
            <th>是否置顶</th>
            <td th:switch="${baseinfo.istop}">
                <span th:case="0"></span>
                <span th:case="1">置顶</span></td>
            <th>帖子描述</th>
            <td th:text="${baseinfo.details}"></td>
        </tr>
        <tr>
            <th>收藏数</th>
            <td th:text="${baseinfo.collectnum}"></td>
        </tr>
        <tr>
            <th>创建时间</th>
            <td th:text="${#dates.format(baseinfo.createDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
            <th>更新时间</th>
            <td th:text="${#dates.format(baseinfo.updateDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
        </tr>
        <tr>
            <td colspan="4">
                <div style="display: flex;align-items: center;">
                    <div style="display: flex;justify-content: center;align-items: center;flex-direction: column;">
                        浏览记录：
                        </div>
                    <div style="display: flex;justify-content: center;align-items: center;flex-direction: column;" th:each="arrayS:${baseinfo.memberInfos}">
                        <a class="open-popup" th:attr="data-url=@{'/agent/message/getAudienceMessage/'+${arrayS.id}}" data-size="500,300" href="#">
                        <img class="layui-nav-img" th:src="${arrayS.headimg}"/>
                        </a>
                    </div>
                </div>
            </td>
        </tr>
        </tbody>

    </table>
</div>
<script th:replace="/common/agenttemplate :: agentscript"></script>
</body>
</html>